package com.yanqu.road.entity.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class StrengthResult {

    private int strength; //当前体力值

    private long strengthUpdateTime;

    private long lastUpdateTime;


    public int getStrength() {
        return strength;
    }

    public void setStrength(int strength) {
        this.strength = strength;
    }

    public long getStrengthUpdateTime() {
        return strengthUpdateTime;
    }

    public void setStrengthUpdateTime(long strengthUpdateTime) {
        this.strengthUpdateTime = strengthUpdateTime;
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(long lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Override
    public String toString() {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
        return "StrengthResult{" +
                "strength=" + strength +
                ", strengthUpdateTime=" + df.format(new Date(strengthUpdateTime)) +
                ", lastUpdateTime=" + df.format(new Date(lastUpdateTime)) +
                '}';
    }
}
